package chai.ning.interfaces.train_12;

public class Aircraft extends Machine implements Voyageable, Roadable, Flyable {

	public Aircraft() {
		super(100);
	}

	@Override
	public void fly() {
		int x = super.getEnergy();
		setEnergy(x - 25);
	}

	@Override
	public void run() {
		int x = getEnergy();
		setEnergy(x - 10);
	}

	@Override
	public void voyage() {
		int x = getEnergy();
		setEnergy(x - 15);
	}

}
